<template>
  <el-menu :default-active="$route.path" class="el-menu-demo" :mode="menuData.mode" router text-color="#000">
    <el-menu-item :index="item.path" v-for="item in menuData.menuList" :key="item.path">
      {{ item.title }}
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  props: {
    menuData: {
      type: Object,
      default() {
        return {
          mode: '', //菜单模式
          menuList: [], //菜单列表
        };
      },
    },
  },
  computed: {},

  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped='scoped'>
</style>